$editable-hover-bg: #eaeaea;

.test-parser-title {
  font-size: 16px;
  padding: 10px;
  &:hover {
    background: $editable-hover-bg;
    cursor: text;
  }
  &:focus {
    background: $editable-hover-bg;
    cursor: text;
    outline: 0 solid transparent;
    text-decoration: underline;
  }
}

.test-media-item {
  display: inline-block;
  position: relative;

  .test-media-item-trash {
    position: absolute;
    top:0;
    right: 0;
    margin: 10px;
  }
}

.test-parser-writing-region-line {
  margin-top: 3em;
  border-bottom: 1px solid #d9d9d9;
}

.test-parser-partial-title {
  display: flex;
  align-items: center;
  justify-content: center;
  color: darkgrey;
  padding: 5px;
  &:before, &:after {
    content: '';
    border-bottom: 1px dashed rgba(170, 171, 173, 0.43);
    width: 180px;
    height: 1px;
    margin: 5px;
  }
}

.media-audio-player {
  height: 60px;
  width: 200px;
  border-radius: 30px;
  border: 2px solid #c8ebfc;

  .media-audio-player-button {
    height: 50px;
    width: 50px;
    background-color: #2bb1f3;
    border-radius: 25px;
    margin: 2.5px 5px;
  }
}

.media-video-player {
  width: 400px;
  box-shadow: 3px 5px 23px #d8d8d8;
}

.content-editable {
  &:empty:before {
    content: attr(placeholder);
    color: #999;
  }

  &:focus {
    background: #eaeaea;
    cursor: text;
    outline: 0 solid transparent;
    text-decoration: underline;
  }

  &:hover {
    background: #eaeaea;
    cursor: text;
  }
}

.test-parser-option-item .ant-carousel .slick-dots {
  top: -20px;
}

.test-parser-option-item .ant-carousel .slick-dots li button {
  width: 20px;
  color: white;
  height: 20px;
  border-radius: 50%;
  font-size: inherit;
  background-color: #108ee9;
}

.test-parser-option-box-group-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;

  .test-parser-option-box {
    height: 60px;
    width: 360px;
    background-size: 20%;
    background-repeat: no-repeat;
    background-position: center;
  }

  .add-option-icon {
    color: #49a9ee;
    font-size: 30px;
    margin-right: 10px;
  }

  .add-option-hint {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.43);
  }

  [contenteditable] {
    cursor: text;
  }

  [contenteditable]:hover {
    background-color: #eaeaea;
  }

  [contenteditable]:focus {
    background-color: #eaeaea;
    outline: 0px solid transparent;
    text-decoration: underline;
  }
}

.test-parser-combo-box-uploader {
  display: inline-block;
  min-width: 350px;
  margin-top: 10px;
}

.test-parser-sub-title {
  margin: 20px 0;
}

.test-parser-sub-title-option {
  margin:20px 0 5px 0;
}

.audio-option {
  margin-top: 50px;
}

.test-attachment-upload {
  padding: 10px;
  & > div {
    display: inline-block;
    margin-right: 5px;
  }
}

.story-card {
  height: 250px;
  border: 1px solid #eee;
  border-radius: 3px;
  position: relative;
  background-size: cover;
}

.story-card-uploader {
  margin: 5px 5px;
  float: right;
  padding: 5px;
  border-radius: 15px;
  border: 1px solid #eee;
  background: white;

  .ant-dropdown-trigger:hover .anticon, .ant-dropdown-trigger:focus .anticon {
    transform: scale(1.3);
  }
}

.story-card-player {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transform: scale(.7);
}

.story-card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(127, 127, 127, 0.53);
  color: white;
  &:focus, &:hover {
    background: rgba(119, 107, 107, 0.65);
  }

  &:empty:before {
    content: attr(placeholder);
    color: #d0d0d0;
  }
}

.story-card .add-option-icon {
  font-size: 70px;
  margin-top: 50px;
}

.test-parser-option {
  border: 1px solid #bababa;
  position: relative;
  height: 225px;
  border-radius: 5px;
  overflow: hidden;

  .option-settings {
    position: absolute;
    border: 1px solid #EEE;
    background-color: white;
    margin: 5px;
    right: 0;
    border-radius: 15px;

    .anticon { padding: 5px; }

    a:hover .anticon{
      transform: scale(1.3);
    }
  }

  .option-settings-padding {
    padding: 5px 0;    
  }

  .test-option-text {
    @extend .story-card-text;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    background-color: rgba(127, 127, 127, 0.53);

  }

  .test-option-player {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    transform: scale(.7);
  }

  .test-parser-no-picture {
    font-size: 140px;
    border-radius: 5px;
    text-shadow: 5px 1px rgba(74, 74, 74, 0.48);
    background-color: #f9f9f9;
  }
}

.test-parser-option-selected {
  border: 2px solid #49a9ee;
}

.responsive-option-wrapper {
  width: 25%;
  padding: 5px;
  float: left;
}

.test-parser-ref-item {
  display: table-cell;
  margin-bottom: 8px;
  white-space: nowrap;
  line-height: 3em;
}